Skip to content

Commit

Permalink
chore: update URL on change
Browse files Browse the repository at this point in the history
  • Loading branch information
Falci committed Feb 21, 2024
1 parent 2d4d372 commit 4048e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ function App() {
useDebounce(() => setName(value), 350, [value]);

const loadData = async () => {
umami.track('check', { name, token });
setLoading(true);
const { data } = await refetch();
setAddr(data?.addr || '');
setLoading(false);
window.history.pushState({}, '', `?name=${name}&token=${token}`);
};

useEffect(() => {
Expand Down

0 comments on commit 4048e0b

Please sign in to comment.