fix(types): Fixed incorrectly referenced type

This commit is contained in:
Taso committed 2021-04-11 10:32:31 -04:00
1 parent b5fca6b35b
commit 390319deda
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import { IPhoto, PhotoEvents } from '../../typings/photo';
import { GalleryPhoto, PhotoEvents } from '../../typings/photo';
import { Delay } from '../utils/fivem';
import { sendMessage, sendCameraEvent } from '../utils/messages';
import { PhoneEvents } from '../../typings/phone';
@@ -107,7 +107,7 @@ function takePhoto() {
);
}
onNet(PhotoEvents.UPLOAD_PHOTO_SUCCESS, (photo: IPhoto) => {
onNet(PhotoEvents.UPLOAD_PHOTO_SUCCESS, (photo: GalleryPhoto) => {
if (photo && photo.image) {
return sendCameraEvent(PhotoEvents.TAKE_PHOTO_SUCCESS, photo);
}