Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: click learn more winner #590

Merged
merged 12 commits into from
Sep 23, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const ViewReceipt: React.FC<ViewReceiptProps> = ({ categoryId, close }) => {
eventBus.publish(EventName.ShowToast, r.message, ToastType.Error);
return;
}
if (JSON.stringify(r) === JSON.stringify(receipts[categoryId])) {
if (JSON.stringify(r) === JSON.stringify(receipt)) {
eventBus.publish(
EventName.ShowToast,
"No changes detected in the receipt",
Expand Down
2 changes: 1 addition & 1 deletion ui/summit-2024/src/pages/Categories/components/Winners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const Winners: React.FC<WinnersProps> = ({
return (
<Typography
onClick={(event: React.MouseEvent<HTMLDivElement, MouseEvent>) =>
handleLearnMoreClick(event, "")
handleLearnMoreClick(event, winner.id)
}
align="center"
mt={2}
Expand Down
Loading