Skip to content

Commit b5b042a

Browse files
committed
fix: Try reoing differently
1 parent 6b6536b commit b5b042a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/integrations/reo/reo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export function useReo() {
1111
console.log('Reo', Reo);
1212
console.log('Reo?.init', Reo?.init);
1313
console.log('Reo client id', import.meta.env.VITE_REO_DEV_CLIENT_ID);
14-
return reoClient = Reo?.init?.({ clientID: import.meta.env.VITE_REO_DEV_CLIENT_ID });
14+
Reo?.init?.({ clientID: import.meta.env.VITE_REO_DEV_CLIENT_ID });
15+
return reoClient = Reo;
1516
});
1617
}
1718
}, []);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
declare module 'reodotdev' {
2-
export function loadReoScript({ clientID: string }): Promise<{
3-
init: null | (({ clientID: string }) => ReoClient);
4-
}>;
2+
export function loadReoScript({ clientID: string }): Promise<ReoClient>;
53

64
export interface ReoClient {
5+
init: null | (({ clientID: string }) => ReoClient);
76
identify: null | ((person: { username: string; type: string; company: string; }) => void);
87
}
98
}

0 commit comments

Comments
 (0)