Skip to content

Commit

Permalink
fix: replaced for battery reading the substring function call
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Parcet Gonzalez <[email protected]>
  • Loading branch information
alexpargon committed Nov 12, 2024
1 parent 05a3d54 commit ea6f05c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface DefyBatteryIndicatorLeftProps {
}

const DefyBatteryIndicatorLeft = ({ batteryStatus, batteryHeight }: DefyBatteryIndicatorLeftProps) => {
const maskHash = `${Date.now()}-${(Math.random() + 1).toString(36).substring(7)}-left`;
const maskHash = `${Date.now()}-${(Math.random() + 1).toString(36).substring(0, 7)}-left`;
return (
<svg
className="defy-battery-indicator"
Expand Down

0 comments on commit ea6f05c

Please sign in to comment.