Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
[FIX] LoadConfig after registering guest (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanoii authored and MartinSchoeler committed Nov 22, 2021
1 parent 485fd47 commit c76fc34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Triggers from './triggers';
const createOrUpdateGuest = async (guest) => {
const { token } = guest;
token && await store.setState({ token });
token && await loadConfig();
const user = await Livechat.grantVisitor({ visitor: { ...guest } });
store.setState({ user });
};
Expand Down

0 comments on commit c76fc34

Please sign in to comment.