Skip to content

Commit

Permalink
Still scuffed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Jul 14, 2024
1 parent 220bd7e commit cd27dfa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/desktop/src/views/settings/account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const Account = () => {
const [showQuitDialog, setShowQuitDialog] = useState(false);
const [user, setUser] = useState<VoiceUser | null>(null);
const [tokenExpires, setTokenExpires] = useState(localStorage.getItem("discord_access_token_expiry"));
const [zoom, setZoom] = useState(50);
const [zoom, setZoom] = useState(1);

// pull out the user data from localStorage
useEffect(() => {
Expand Down Expand Up @@ -272,10 +272,11 @@ export const Account = () => {
Zoom
<Slider
onValueChange={async ([val]) => {
setZoom(val || 0);
setZoom(val as number);
console.log(val);
await invoke("zoom_window", { scaleFactor: zoom });
}}
defaultValue={[0.4]}
defaultValue={[1.0]}
min={0.4}
max={1.5}
step={0.1}
Expand Down

0 comments on commit cd27dfa

Please sign in to comment.