fix(SW-556): reverse conditional
This commit is contained in:
@@ -42,10 +42,9 @@ 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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user