Skip to content

Commit

Permalink
Force update info using Date.now()
Browse files Browse the repository at this point in the history
  • Loading branch information
mohdsayed committed Dec 28, 2024
1 parent f6cf399 commit 99279a0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ const Box = ({
mouseY >= iconY &&
mouseY <= iconY + INFO_ICON_SIZE
) {
app.setInfo(info);
app.setInfo({
info,
key: Date.now(), // To force change the state, so that the info modal is shown in case of same value.
});
}
};

Expand Down

0 comments on commit 99279a0

Please sign in to comment.