convert legacy reactive statement to $effect in cospend layout
All checks were successful
CI / update (push) Successful in 1m23s
All checks were successful
CI / update (push) Successful in 1m23s
Replace `$:` reactive statement with `$effect` rune to fix build error in Svelte 5 runes mode.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
user = data.session.user;
|
||||
}
|
||||
|
||||
$: {
|
||||
$effect(() => {
|
||||
// Check if URL contains payment view route OR if we have paymentId in state
|
||||
const match = $page.url.pathname.match(/\/cospend\/payments\/view\/([^\/]+)/);
|
||||
const statePaymentId = $page.state?.paymentId;
|
||||
@@ -32,7 +32,7 @@
|
||||
showModal = false;
|
||||
paymentId = null;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
async function handlePaymentDeleted() {
|
||||
// Close the modal
|
||||
|
||||
Reference in New Issue
Block a user