Merge pull request #4330 from matrix-org/travis/react-warnings/4-false-positives

Use console.log in place of console.warn for less warnings
This commit is contained in:
Travis Ralston 2020-04-01 14:14:51 -06:00 committed by GitHub
commit 05b58dc81d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View file

@ -84,11 +84,11 @@ export default class Stickerpicker extends React.Component {
async _removeStickerpickerWidgets() {
const scalarClient = await this._acquireScalarClient();
console.warn('Removing Stickerpicker widgets');
console.log('Removing Stickerpicker widgets');
if (this.state.widgetId) {
if (scalarClient) {
scalarClient.disableWidgetAssets(widgetType, this.state.widgetId).then(() => {
console.warn('Assets disabled');
console.log('Assets disabled');
}).catch((err) => {
console.error('Failed to disable assets');
});