Fix: Wrong import of Contact object (#2715)

* Fix: Wrong import of Contact object

There was an error in the import:
`const {Contact} = require('./Contact');`
instead of
`const Contact = require('./Contact');`

* style: fix import order

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
Shir Serlui 2024-01-11 02:23:42 +02:00 • committed by GitHub
commit 2100853727
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,8 @@ const Location = require('./Location');
const Order = require('./Order'); const Order = require('./Order');
const Payment = require('./Payment'); const Payment = require('./Payment');
const Reaction = require('./Reaction'); const Reaction = require('./Reaction');
const {MessageTypes} = require('../util/Constants'); const Contact = require('./Contact');
const {Contact} = require('./Contact'); const { MessageTypes } = require('../util/Constants');
/** /**
* Represents a Message on WhatsApp * Represents a Message on WhatsApp