Skip to content

Commit 58e0188

Browse files
fix: handle non-fatal error in machine ID retrieval in About tab
1 parent 6212578 commit 58e0188

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/SettingsPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3750,7 +3750,7 @@ function AboutTab({
37503750
const [machineId, setMachineId] = useState<string>('');
37513751
const [machineIdCopied, setMachineIdCopied] = useState(false);
37523752
useEffect(() => {
3753-
window.api?.machine?.getId().then(setMachineId).catch(() => {});
3753+
window.api?.machine?.getId().then(setMachineId).catch((_e: unknown) => { /* non-fatal */ });
37543754
}, []);
37553755

37563756
async function resetAppData() {

0 commit comments

Comments
 (0)