File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
app/notification-generator Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export default function NotificationGeneratorPage() {
96
96
soundCategory : "" ,
97
97
titleHide : false ,
98
98
pitch : "1.0" ,
99
- volume : "2 .0" ,
99
+ volume : "1 .0" ,
100
100
} ) ;
101
101
102
102
const [ yamlCode , setYamlCode ] = useState ( "" ) ;
@@ -137,8 +137,12 @@ export default function NotificationGeneratorPage() {
137
137
}
138
138
139
139
if ( notification . sound ) {
140
- const volume = notification . volume || "2.0" ;
141
- const pitch = notification . pitch || "1.0" ;
140
+ const volumeValue = notification . volume || "1.0" ;
141
+ const pitchValue = notification . pitch || "1.0" ;
142
+
143
+ const volume = parseFloat ( volumeValue ) . toFixed ( 1 ) ;
144
+ const pitch = parseFloat ( pitchValue ) . toFixed ( 1 ) ;
145
+
142
146
if ( notification . soundCategory ) {
143
147
parts . push (
144
148
`sound: "${ notification . sound } ${ notification . soundCategory } ${ volume } ${ pitch } "`
You can’t perform that action at this time.
0 commit comments