Skip to content

Commit

Permalink
fix: update options accessors in calculator, sentry 2760233460
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Nov 1, 2021
1 parent 0221971 commit 51f09f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interactions/warframe/Calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ module.exports = class Calculator extends require('../../models/Interaction') {
const subcommand = interaction.options.getSubcommand();
const { options } = interaction;

const base = options.get('base_level').value;
const current = options.get('current_level').value;
const val = options.get('base').value;
const base = options?.getInteger('base_level') || 0;
const current = options?.getInteger('current_level') || 1;
const val = options?.getInteger('base') || 0;
const range = current - base;

let f1;
Expand Down

0 comments on commit 51f09f3

Please sign in to comment.