One more type fix

t3chguy/dedup-icons-17oct
Johannes Marbach 2023-02-04 20:38:27 +01:00
parent 93682e9d13
commit 2b97de7a47
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ describe("<MBeaconBody />", () => {
beforeEach(() => {
// mock map utils to raise MapStyleUrlNotConfigured error
jest.spyOn(mapUtilHooks, "useMap").mockImplementation(({ onError }) => {
onError(new Error(LocationShareError.MapStyleUrlNotConfigured));
onError?.(new Error(LocationShareError.MapStyleUrlNotConfigured));
return mockMap;
});
});