Corrected the logic in the power function to handle the zero exponent case correctly. Previously, the function was set to abort when num2 == 0. Updated it to return 1 instead, aligning with the mathematical rule that any number raised to the power of zero equals one.
Fixed a typo in value of the environment variable REACT_APP_MODULE_NAME. The module value was mistakenly set to "calculator_l12" and has been corrected to "calculator".
Corrected the logic in the power function to handle the zero exponent case correctly. Previously, the function was set to abort when
num2 == 0
. Updated it to return1
instead, aligning with the mathematical rule that any number raised to the power of zero equals one.Fixed a typo in value of the environment variable
REACT_APP_MODULE_NAME
. The module value was mistakenly set to"calculator_l12"
and has been corrected to"calculator"
.