diff --git a/src/common/card/NitroCardView.tsx b/src/common/card/NitroCardView.tsx index 236f615f..e787781f 100644 --- a/src/common/card/NitroCardView.tsx +++ b/src/common/card/NitroCardView.tsx @@ -32,7 +32,7 @@ export const NitroCardView: FC = props => const localStorage = GetLocalStorage(`nitro.windows.${ uniqueKey }`); const element = elementRef.current; - if(localStorage && localStorage.size) + if(localStorage && localStorage.size && localStorage.size.width > 0 && localStorage.size.height > 0) { element.style.width = `${ localStorage.size.width }px`; element.style.height = `${ localStorage.size.height }px`;