fix(SW-556): reverse conditional

This commit is contained in:
Christian Andolf
2024-10-16 17:05:52 +02:00
parent dcfa0d9bd8
commit 5eb788735f

View File

@@ -42,11 +42,10 @@ export default function Surprises({
} }
function viewRewards(id?: string) { function viewRewards(id?: string) {
if (!id) { if (id) {
return
}
update.mutate({ id }) update.mutate({ id })
} }
}
function closeModal(close: VoidFunction) { function closeModal(close: VoidFunction) {
viewRewards() viewRewards()