Skip to content

Commit

Permalink
fix possible precision issue
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Apr 7, 2024
1 parent b4a76f2 commit 7225290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/dynamicIcon.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const dynamicIconHandler: Handler = (client) => {
message.guild?.setIcon(
await stream2buffer(await generateIcon(currentProgress / 2))
);
if (currentProgress == 2) {
if (currentProgress >= 2) {
clearInterval(timeout);
}
};
Expand Down

0 comments on commit 7225290

Please sign in to comment.