Skip to content

Commit 34defa7

Browse files
committed
Handle unloading
1 parent d4882b0 commit 34defa7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/routes/_account.plan.index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ function Plan(): React.ReactElement {
6060
}, []);
6161

6262
const ref: Ref<HTMLIFrameElement> = useCallback(
63-
(iframe: HTMLIFrameElement) => {
63+
(iframe: HTMLIFrameElement | null) => {
64+
if (!iframe) return;
6465
calculateHeight(iframe);
6566

6667
if (iframe.contentWindow) {

0 commit comments

Comments
 (0)