fix: discord rich presence connection status (#2714)

* fix: discord rich presence connection status

* fix: optional chaining already handles null case
This commit is contained in:
Dan-Radu Pana
2024-12-15 15:00:00 +02:00
committed by GitHub
parent 1a4ee13e47
commit 61c799f7d4

View File

@ -110,7 +110,7 @@ export const clear = () => {
};
export const registerRefresh = (cb: () => void) => refreshCallbacks.push(cb);
export const isConnected = () => info.rpc !== null;
export const isConnected = () => info.rpc?.isConnected;
export const backend = createBackend<
{