Skip to content

Commit 3bc1309

Browse files
committed
Clone state
1 parent 403046d commit 3bc1309

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/app-check/src/state.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ export function setStateProperty<T extends keyof AppCheckState>(
7171
property: T,
7272
value: AppCheckState[T]
7373
): void {
74-
console.log('setStateProperty', property);
75-
const newState = getState(app);
74+
const newState = {...getState(app)};
7675
newState[property] = value;
7776
setState(app, newState);
7877
}

0 commit comments

Comments
 (0)