Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored and astrobot-houston committed Sep 6, 2024
1 parent 4a44e82 commit 4a95159
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/integrations/preact/src/signals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export function serializeSignals(
for (const [key, value] of Object.entries(props)) {
const isPropArray = Array.isArray(value);
// `typeof null` is 'object' in JS, so we need to check for `null` specifically
const isPropObject = !isSignal(value) && typeof props[key] === 'object' && props[key] !== null && !isPropArray;
const isPropObject =
!isSignal(value) && typeof props[key] === 'object' && props[key] !== null && !isPropArray;

if (isPropObject || isPropArray) {
const values = isPropObject ? Object.keys(props[key]) : value;
Expand Down

0 comments on commit 4a95159

Please sign in to comment.