Skip to content

Commit 57b85a7

Browse files
committed
fix: Condition to update image
1 parent 57b009b commit 57b85a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/routes/[[lang=lang]]/live-photo/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
1919
if (
2020
liveData.active &&
21-
prevData?.active != liveData.active &&
22-
liveData?.imageInfo?.Date != prevData?.imageInfo?.Date
21+
(prevData?.active != liveData.active ||
22+
liveData?.imageInfo?.Date != prevData?.imageInfo?.Date)
2323
) {
2424
now = Date.now();
2525
}

0 commit comments

Comments
 (0)