mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 04:51:06 +02:00
fix unauthenticated flow
This commit is contained in:
@@ -116,6 +116,10 @@ export const useCurrentServerId = () => useAuthStore((state) => state.currentSer
|
||||
|
||||
export const useCurrentServer = () =>
|
||||
useAuthStore((state) => {
|
||||
if (!state.currentServer) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
features: state.currentServer?.features,
|
||||
id: state.currentServer?.id,
|
||||
|
||||
Reference in New Issue
Block a user