File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3838 < div class ="computation-history-parent ">
3939 < h3 > history</ h3 >
4040 < ul class ="computation-history " aria-label ="Computation History "> </ ul >
41- < button class ="clear-history-btn " aria-label ="Clear History "> clear history</ button >
41+ < button class ="clear-history-btn display " aria-label ="Clear History "> clear history</ button >
4242
4343 </ div >
4444
Original file line number Diff line number Diff line change @@ -320,6 +320,7 @@ function clearHistoryInLocalStorage() {
320320
321321function togglesClearHistoryButton ( element , btn ) {
322322 const history = getHistoryFromLocalStorage ( ) ;
323- btn . classList . toggle ( "display" , element . childElementCount > 0 ) ;
323+ // btn.classList.toggle("display", element.childElementCount > 0);
324+ clearHistoryBtn . classList . toggle ( "display" , element . childElementCount > 0 ) ;
324325}
325326// functions creations ends
You can’t perform that action at this time.
0 commit comments