We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3150287 + 184c6c5 commit f6450c7Copy full SHA for f6450c7
app/javascript/components/reconfigure-vm-form/helpers/general.js
@@ -50,4 +50,8 @@ export const formsData = {
50
/** Function to get the value in MB
51
* converts the value to GB to MB based on the passed unit
52
*/
53
-export const sizeInMB = (value, unit) => (unit === __('GB') ? value * 1024 : value);
+export const sizeInMB = (value, unit) => {
54
+ // Check if unit is GB or a localized version of GB (like "Go" in French)
55
+ const isGigabyte = unit === 'GB' || unit === __('GB');
56
+ return isGigabyte ? value * 1024 : value;
57
+};
0 commit comments